require 'soap_client'
require "environment"

class Tests

	@@b = lambda do |response|
		puts "Got response ================================"
		#puts response.to_yaml
		puts "body : " + response.body
		puts "End Response ================================"
	end

	def initialize(env, request)
		Enviroment.init(env)
		@request = request
	end	
	
	def run
		#threads = []
		1.times do
			#Thread.new do
				SoapClient.new(@request).run &@@b 
			#end
		end
		#threads.each {|t| t.join}
	end
end

